package com.gitee.wsl.compose.chart.legend



/**
 * Identifies the location at which to place a chart's legend.
 */
 enum class LegendLocation {
    NONE, LEFT, TOP, RIGHT, BOTTOM;
    
     val isTop: Boolean
        get() = this == TOP

     val isBottom: Boolean
        get() = this == BOTTOM

     val isRight: Boolean
        get() = this == RIGHT

     val isLeft: Boolean
        get() = this == LEFT

     val isTopOrBottom: Boolean
        get() = (isTop || isBottom)

     val isLeftOrRight: Boolean
        get() = (isLeft || isRight)

    fun isVertical(): Boolean = (this == LEFT || this == RIGHT)

    fun isHorizontal(): Boolean = (this == TOP || this == BOTTOM)
}